<extend name="Public/Common/base.html" />
<block name="main">
<style>
form{
	font-size:14px;
}
</style>

 <css  href="__PUBLIC__/assets/css/amazeui.chosen.css"/>
 <js href="__PUBLIC__/assets/js/amazeui.chosen.min.js"/> 
 <css  href="__PUBLIC__/assets/css/amazeui.datetimepicker.css"/>
 <js href="__PUBLIC__/assets/js/amazeui.datetimepicker.min.js"/> 

<div class="am-g">
 <form class="am-form" action="{$url}" method="post">
  <fieldset>
     
     <div class="am-form-group am-u-sm-4 am-u-end">
      <label for="doc-select-1">出差人员:</label>   
			<select data-placeholder="请选择参与人" name="taskusers[]"  id="taskusers" multiple class="chosen-select " tabindex="11" required >			 
			 <volist name="relationlist" id="vo">			
			  <optgroup label="{$vo.station}" >	
			      <foreach name="vo" item="v">
				      <foreach name="v" item="vv">
					  <option value="{$vv['id']}" <eq name="vv.status" value="1">disabled</eq>>{$vv['name']}</option>
					  </foreach>	
				   </foreach>						 
			 </optgroup>
			 </volist>				
         </select>        				       	                 
    </div>
   
     <div class="am-form-group am-u-sm-4 am-u-end">
      <label for="doc-select-1">出差月份:</label>       
	   <select id="month_id"  name="month_id" required>
        <option value="">请选择月份</option>
        <volist name="monthlist" id="vo">  
        <option value="{$vo.id}" <if condition="$vo.month eq $nowmonth">selected</if> >{$vo.month}月</option>
       </volist>
      </select>
      <span class="am-form-caret"></span>     				       	                 
    </div>

	<div class="am-input-group am-u-sm-4 am-u-end" >
	 <label for="tasktime">出差时间:</label>   
	<input size="14" type="text" name="taskstarttime" id="taskstarttime" value="{$datetime}" placeholder="请输入日期"  class="form-datetime-lang am-form-field" required>
	</div>
	<div style="clear: both;"></div>
	<div class="am-form-group am-u-sm-12">
      <label for="taskinfo">出差任务：</label>
     <input type="text" id="taskinfo" name="taskinfo"   required >
    </div>
	
	
	
<js href="__PUBLIC__/layer/layer.js" />		
<js href="__PUBLIC__/assets/js/app.js"/> 
  </fieldset>
   <p><button type="submit" onclick="task()" class="am-btn am-btn-sm am-btn-primary am-margin-left-lg" >发布任务</button></p>
</form>
</div>        
       
</block>
